package com.wang.learn.cloudproduct.controller;

import com.wang.learn.cloudproduct.feign.ProductFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author www.itdream.site
 * @description
 * @create 2021-03-24 17:17
 */
@RestController
public class ProductConrtroller {

    @Autowired
    private ProductFeignService productFeignService;

    @GetMapping("/test/{str}")
    public String test(@PathVariable String str) {
        return productFeignService.getPaymentById(str);
    }
}
